//
//  NYFollowCategoryCell.m
//  百思不得姐
//
//  Created by Apple on 15/9/1.
//  Copyright (c) 2015年 Neal. All rights reserved.
//

#import "NYFollowCategoryCell.h"
#import "NYFollowCategory.h"

@interface NYFollowCategoryCell ()
@property (weak, nonatomic) IBOutlet UIView *indicatorView;
@property (weak, nonatomic) IBOutlet UILabel *tagLabel;

@end
@implementation NYFollowCategoryCell

- (void)awakeFromNib {
    // Initialization code
    self.backgroundColor = [UIColor clearColor];
    self.tagLabel.backgroundColor = [UIColor clearColor];
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];
    
    self.indicatorView.hidden = !selected;
    self.tagLabel.textColor = selected?[UIColor redColor]:[UIColor grayColor];
    
    
}

- (void)setCategory:(NYFollowCategory *)category
{
    _category = category;
    self.tagLabel.text = category.name;
    
}
@end
